#ifndef SERVERPLAYER_H
#define SERVERPLAYER_H

#include "core/global.h"
#include "core/Player.h"

#include <QPoint>

class Room;
class QTcpSocket;
class QHostAddress;

class ServerPlayer : public Player
{
    Q_OBJECT

public:
    ServerPlayer(Room *room, int id, QTcpSocket *socket);

    QHostAddress getClientAddress() const;
    Room *getRoom() const;

public:
    void chat(QString message);
    void movePiece(int from, int to);

private slots:
    void receiveNotification();

protected:
    Room *room;

signals:
    void clientConnected(QString);
    void readyToPlay();
};

#endif // SERVERPLAYER_H
